import request from '@/utils/request'
//删除知识库

export function editKnowledge(data) {
  return request({
    url: 'system/upload/knowledge/update',
    method: 'post',
    data
  })
}

export function delKnowledge(id) {
    return request({
      url: '/system/upload/knowledge/delByIds/' + id,
      method: 'get'
    })
  }
  
// 知识库上传
export function updKnowledge(data) {
    return request({
      url: '/system/upload/knowledge',
      method: 'post',
      data,

    })
  }
  // 查询知识库
export function selKnowledge(data) {
    return request({
      url: '/system/upload/knowledge/list',
      method: 'get',
      params:data,

    })
  }